#include "read_data.h"
#include <bits/stdc++.h>
using namespace std;

// the function body
void read_file_names(){
	FILE *fp;
	fp = freopen("datanames.txt","r",stdin);
	for(int i=0;i<N;i++)strcpy(File_name[i],"data/");
	for(int i=0;i<N;i++)scanf("%s",File_name[i]+5);
	fclose(fp);
}
//

// read_data func body
void read_data(int k){
	FILE *fp;
	fp=freopen(File_name[k],"r",stdin);
	scanf("%d%d",&n,&c);
	for(int i=0;i<n;i++)scanf("%d%d",&bag[i].v,&bag[i].w)\
	,bag[i].rat=1.0*bag[i].v/bag[i].w;
	sort(bag,bag+n,cmp);
	fclose(fp);
}
//